package product

import "crmeb-common/global"

// ProductRelation 商品点赞和收藏表
type ProductRelation struct {
	global.BaseModel
	Uid int32 `json:"uid" gorm:"column=uid;comment:用户ID"`

	ProductId int32 `json:"productId" gorm:"column=product_id;comment:商品ID"`

	Type string `json:"type" gorm:"column=type;comment:关联类型(收藏(collect）、点赞(like))"`

	Category int32 `json:"category" gorm:"column=category;comment:商品类型 0=商品，1=秒杀，2=砍价，3=拼团"`
}
